<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Reset Your NeoBase Password</title>
    <!--[if mso]>
    <noscript>
        <xml>
            <o:OfficeDocumentSettings>
                <o:PixelsPerInch>96</o:PixelsPerInch>
            </o:OfficeDocumentSettings>
        </xml>
    </noscript>
    <![endif]-->
    <style type="text/css">
        /* Import fonts */
        @import url('https://fonts.googleapis.com/css2?family=Archivo:wght@300;400;500;600;700;800&display=swap');

        /* Mobile-first responsive styles */
        @media only screen and (max-width: 600px) {
            .email-container {
                width: 100% !important;
                max-width: 100% !important;
                margin: 0 !important;
            }

            .email-content {
                width: 100% !important;
                max-width: 100% !important;
                padding: 15px !important;
                border-radius: 0 !important;
            }

            .header-content {
                padding: 30px 20px !important;
            }

            .main-content {
                padding: 30px 20px !important;
            }

            .footer-content {
                padding: 20px !important;
            }

            .otp-section {
                padding: 20px !important;
            }

            .warning-section {
                padding: 20px !important;
            }

            h1 {
                font-size: 28px !important;
            }

            h2 {
                font-size: 24px !important;
            }

            h3 {
                font-size: 18px !important;
            }

            .otp-code {
                font-size: 32px !important;
                letter-spacing: 4px !important;
            }

            /* Force container responsiveness */
            table[width="600"] {
                width: 100% !important;
                max-width: 100% !important;
            }
        }

        /* Force text colors for email clients - Override ALL theme inheritance */
        .black-text,
        .black-text *,
        h1,
        h1 *,
        h2,
        h2 *,
        h3,
        h3 *,
        h4,
        h4 *,
        h5,
        h5 *,
        h6,
        h6 * {
            color: #000000 !important;
        }

        .gray-text,
        .gray-text *,
        p,
        p *,
        span,
        span *,
        div,
        div * {
            color: #374151 !important;
        }

        .muted-text,
        .muted-text * {
            color: #6b7280 !important;
        }

        .green-text,
        .green-text * {
            color: #10b981 !important;
        }

        .warning-text,
        .warning-text * {
            color: #92400e !important;
        }

        /* Font families */
        .primary-font {
            font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
        }

        .secondary-font {
            font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
        }

        /* Main styles */
        body {
            margin: 0 !important;
            padding: 0 !important;
            background-color: #fef3c7 !important;
            font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
            line-height: 1.6;
            -webkit-text-size-adjust: 100%;
            -ms-text-size-adjust: 100%;
        }

        /* OTP code styling */
        .otp-code-text {
            color: #10b981 !important;
            font-weight: 800 !important;
        }

        /* Warning styling */
        .warning-badge {
            background-color: #fef3cd !important;
            border: 2px solid #f59e0b !important;
            color: #92400e !important;
        }
    </style>
</head>

<body
    style="margin: 0; padding: 0; background-color: #fef3c7; font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%;">
    <!-- Outlook fallback wrapper -->
    <!--[if mso | IE]>
    <table role="presentation" border="0" cellpadding="0" cellspacing="0" width="100%" style="background-color: #fef3c7;">
        <tr>
            <td>
    <![endif]-->

    <!-- Main container -->
    <table role="presentation" border="0" cellpadding="0" cellspacing="0" width="100%"
        style="background-color: #fef3c7;">
        <tr>
            <td align="center" style="padding: 20px 10px;">
                <!-- Email content wrapper -->
                <table role="presentation" border="0" cellpadding="0" cellspacing="0" class="email-container"
                    style="width: 600px; max-width: 600px; background-color: #ffffff; border: 3px solid #000000; border-radius: 12px; box-shadow: 6px 6px 0px #000000; overflow: hidden; margin: 0 auto;">

                    <!-- Header Section -->
                    <tr>
                        <td class="header-content"
                            style="padding: 40px 30px 20px; text-align: center; background-color: #ffffff;">
                            <table role="presentation" border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <td align="center">
                                        <!-- Logo -->
                                        <h1 class="black-text primary-font" style="font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 32px; font-weight: bold; color: #000000 !important; margin: 0 0 16px 0; padding: 0; text-align: center;">NeoBase</h1>

                                        <h2 class="black-text primary-font"
                                            style="font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 24px; font-weight: bold; color: #000000 !important; margin: 0 0 16px 0; text-align: center;">
                                            Password Reset Request</h2>
                                        <p class="muted-text secondary-font"
                                            style="font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #6b7280 !important; font-size: 16px; margin: 0; text-align: center;">
                                            Secure access to your AI Database Copilot</p>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>

                    <!-- Main Content -->
                    <tr>
                        <td class="main-content" style="padding: 0 30px 30px; background-color: #ffffff;">
                            <table role="presentation" border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <td>
                                        <p class="gray-text secondary-font"
                                            style="font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 16px; color: #374151 !important; margin: 0 0 20px 0; line-height: 1.6;">
                                            Hello <strong>{{username}}</strong>,</p>

                                        <p class="gray-text secondary-font"
                                            style="font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 16px; color: #374151 !important; margin: 0 0 30px 0; line-height: 1.6;">
                                            We received a request to reset your NeoBase password. Use the OTP code below
                                            to reset your password and regain access to your AI Database Copilot.
                                        </p>
                                    </td>
                                </tr>
                            </table>

                            <!-- OTP Section -->
                            <table role="presentation" border="0" cellpadding="0" cellspacing="0" width="100%"
                                style="background-color: #dcfce7; border: 3px dashed #10b981; border-radius: 12px; margin: 30px 0;">
                                <tr>
                                    <td class="otp-section" style="padding: 30px; text-align: center;">
                                        <p class="gray-text secondary-font"
                                            style="font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 16px; color: #374151 !important; margin: 0 0 16px 0; font-weight: 600;">
                                            Your One-Time Password:</p>
                                        <div class="otp-code-text primary-font"
                                            style="font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 42px; font-weight: 800; color: #10b981 !important; letter-spacing: 8px; margin: 0 0 16px 0;">
                                            {{otp}}</div>
                                        <p class="muted-text secondary-font"
                                            style="font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #6b7280 !important; font-size: 14px; margin: 0;">
                                            This code will expire in 10 minutes</p>
                                    </td>
                                </tr>
                            </table>

                            <!-- Security Warning -->
                            <table role="presentation" border="0" cellpadding="0" cellspacing="0" width="100%"
                                style="background-color: #fef3cd; border: 2px solid #f59e0b; border-radius: 8px; margin: 30px 0;">
                                <tr>
                                    <td class="warning-section" style="padding: 20px;">
                                        <h3 class="warning-text secondary-font"
                                            style="font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 16px; font-weight: bold; color: #92400e !important; margin: 0 0 12px 0;">
                                            ⚠️ Security Notice</h3>
                                        <ul class="warning-text secondary-font"
                                            style="font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #92400e !important; margin: 0; padding-left: 20px;">
                                            <li style="margin-bottom: 8px; font-size: 14px; color: #92400e !important;">
                                                This OTP is valid for 10 minutes only</li>
                                            <li style="margin-bottom: 8px; font-size: 14px; color: #92400e !important;">
                                                Don't share this code with anyone</li>
                                            <li style="margin-bottom: 8px; font-size: 14px; color: #92400e !important;">
                                                If you didn't request this reset, please ignore this email</li>
                                            <li style="margin-bottom: 0; font-size: 14px; color: #92400e !important;">
                                                Your account remains secure until you use this code</li>
                                        </ul>
                                    </td>
                                </tr>
                            </table>

                            <table role="presentation" border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <td>
                                        <p class="gray-text secondary-font"
                                            style="font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 16px; color: #374151 !important; margin: 0; line-height: 1.6;">
                                            If you're having trouble with the password reset process, please contact our
                                            support team. We're here to help you get back to managing your databases
                                            with AI assistance.
                                        </p>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>

                    <!-- Footer -->
                    <tr>
                        <td class="footer-content"
                            style="padding: 30px; text-align: center; background-color: #f9fafb; border-top: 1px solid #e5e7eb;">
                            <p class="gray-text secondary-font"
                                style="font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 16px; color: #374151 !important; margin: 0 0 8px 0;">
                                Best regards,</p>
                            <p class="black-text secondary-font"
                                style="font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 16px; font-weight: 600; color: #000000 !important; margin: 0 0 20px 0;">
                                The NeoBase Team</p>
                            <p class="muted-text secondary-font"
                                style="font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 12px; color: #9ca3af !important; margin: 0; font-style: italic;">
                                This is an automated email. Please do not reply to this message.
                            </p>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>

    <!--[if mso | IE]>
            </td>
        </tr>
    </table>
    <![endif]-->
</body>

</html>